import request from '@/utils/request'

export function getTeachers(sch_id) {
  return request({
    url: `teachers`,
    method: 'get'
  })
}

export function getTeachersCondition(data) {
  return request({
    url: `teachers/conditions`,
    method: 'post',
    data
  })
}
export function addTeacher(data) {
  return request({
    url: 'teachers',
    method: 'post',
    data
  })
}

export function updateTeacher( id,data) {
  return request({
    url: `teachers`,
    method: 'put',
    data
  })
}

export function deleteTeacher(id) {
  return request({
    url: `teachers/${id}`,
    method: 'delete'
  })
}




